package org.gw.building.model.base;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by qwx89 on 2017/7/16.
 */
@Data
@NoArgsConstructor
@Entity
@Table(name = "T_BZJY_CZLX")
//在校状态
public class Czlx {
    @Id
    @Column(length = 2)
    //代码
    private String dm;

    @Column(length = 10)
    //名称
    private String mc;

    @Column
    //是否有效
    private boolean sfyx;

    @Column
    //排序
    private int px;

    public Czlx(String dm){
        this.dm = dm;
    }
}
